package com.add.petback.service.impl;

import com.add.petback.dao.SellercastMapper;
import com.add.petback.model.Sellercast;
import com.add.petback.service.SellercastService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * (Sellercast)表服务实现类
 *
 * @author makejava
 * @since 2020-03-10 15:54:09
 */
@Service("sellercastService")
public class SellercastServiceImpl implements SellercastService {

    @Resource
    private SellercastMapper mapper;

    @Override
    public void insert(Sellercast object) {
        mapper.insertSelective(object);
    }

    @Override
    public void save(Sellercast object) {
        mapper.updateByPrimaryKeySelective(object);
    }

    @Override
    public List<Sellercast> getAll() {
        return mapper.list(new Sellercast());
    }

    @Override
    public Sellercast find(Sellercast object) {
        return mapper.find(object);
    }

    @Override
    public void delete(Sellercast object) {
        mapper.deleteByPrimaryKey(object.getSellercastpk());
    }

    @Override
    public List<Sellercast> getList(Sellercast object) {
        return mapper.list(object);
    }

}